# Makefile for the socket programming example
#

simple_server_objects = simple_server_main.o ServerSocket.o Socket.o
simple_client_objects = simple_client_main.o ClientSocket.o Socket.o

clean: obj
	rm  *.o

obj: $(simple_server_objects) $(simple_client_objects)
	g++ -o server $(simple_server_objects)
	g++ -o client $(simple_client_objects)

simple_server_main.o: simple_server_main.cpp
	g++ -c simple_server_main.cpp
simple_client_main.o: simple_client_main.cpp
	g++ -c simple_client_main.cpp
ServerSocket.o: ServerSocket.cpp
	g++ -c ServerSocket.cpp
ClientSocket.o: ClientSocket.cpp
	g++ -c ClientSocket.cpp
Socket.o: Socket.cpp
	g++ -c Socket.cpp


